<?php
require_once __DIR__ . '/qiniu/autoload.php';

use Qiniu\Auth;//引入七牛云授权文件

// require_once "jssdk.php";
// $jssdk = new JSSDK("wx16320d7479a5774c", "e111c965e8d4ba6a2ff1a99724f6d573");
// $signPackage = $jssdk->GetSignPackage();


//获取七牛云上传token

$accessKey = 'dZ4JiqyNgc6WgVEixLPUSzrEr3jUloZewEuV4gJI';
$secretKey = 'Intd7MmakuzmxeyY-OeEUPZHWFVaezLArY8Fid_9';

$auth = new Auth($accessKey, $secretKey);
// 要上传的空间
$bucket = 'education5p8';
// 生成上传 Token
$token = $auth->uploadToken($bucket);
die($token);